Dataflow Optimization Made Simple

نویسندگان

  • Norman Ramsey
  • João Dias
  • Simon Peyton Jones
چکیده

We present a Haskell library that makes it easy for compiler writers to implement program transformations based on dataflow analyses. The compiler writer must identify (a) a family of logical assertions on which the transformation will be based; (b) an approximate representation of such assertions, which must have a lattice structure such that every assertion can be increased at most finitely many times; (c) transfer functions that approximate weakest preconditions or strongest postconditions over the assertions; and (d) rewrite functions whose soundness is justified by the assertions. To guide compiler writers, we show how dataflow analyses are related to seminal work on program correctness. Finally, our library uses the algorithm of Lerner, Grove, and Chambers (2002), which enables compiler writers to compose very simple analyses and transformations in a way that achieves the same precision as complex, handwritten “super-analyses.” Our library is the workhorse of a new back end for the Glasgow Haskell Compiler.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Hoopl: Dataflow Optimization Made Simple

We present Hoopl, a Haskell library that makes it easy for compiler writers to implement program transformations based on dataflow analyses. The compiler writer must identify (a) logical assertions on which the transformation will be based; (b) a representation of such assertions, which should form a lattice of finite height; (c) transfer functions that approximate weakest preconditions or stro...

متن کامل

Improving the Precision of Equality-Based Dataflow Analyses

We present two new, orthogonal techniques for improving the precision of equality-based dataflow analyses. Subtype expansion models objects at a per-type granularity, enabling a form of subtype-restricted equality constraint, while mutation tracking uses a simple effect analysis to avoid a class of false aliases induced by the bidirectional nature of equality constraints. The utility and costs ...

متن کامل

Optimized dynamic compilation of dataflow representations for multimedia applications

This paper proposes two optimization methods based on dataflow representations and dynamic compilation that enhance flexibility and performance of multimedia applications. These optimization methods are intended to be used in an adaptive decoding context, or, in other terms, where decoders have the ability to adapt their decoding processes according to a bitstream. This adaptation is made possi...

متن کامل

CMSC 631 Composing Dataflow Analyses and Transformations - Report

This paper presents a framework that allows several independent dataflow analyses which perform optimizations to be composed and applied concurrently. This is done so that every analysis will benefit from the transformations made to the program by all other analyses. Dataflow analyses are mostly used in optimizing compilers, to deduce transformations that can be applied on the original program,...

متن کامل

Phased Computation Graphs in the Polyhedral Model

We present a translation scheme that allows a broad class of dataflow graphs to be considered under the optimization framework of the polyhedral model. The input to our analysis is a Phased Computation Graph, which we define as a generalization of the most widely used dataflow representations, including synchronous dataflow, cyclo-static dataflow, and computation graphs. The output of our analy...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2009